注意: 严格模式和
enableCoroutine
存在冲突, 不能同时启用, 不建议启用
在4.1.0
版本后可用, 开启严格模式后, 调用常用的阻塞IO的函数和方法会出现警告
function Runtime::enableStrictMode();
Swoole\Runtime::enableStrictMode();
sleep(1);
Warning: sleep() has been disabled for security reasons in strictmode.php on line 5